#ifndef  mid_uart_h_
#define mid_uart_h_
#include "hal.h"

void Mid_Uart0Cfg(void);
void Mid_Uart0PortInit(void);
void Mid_Uart0Init(void);
void Mid_Uart1Cfg(void);
void Mid_Uart1PortInit(void);
void Mid_Uart1Init(void);
void Mid_Uart0Send(uint8_t vdata);
void Mid_Uart1Send(uint8_t vdata);

#define    MAX_RXD_NUM  4
#define    MAX_TXD_NUM  4
 typedef struct  str_usart
     {
			 uint16_t wRxdWptr;
			 uint16_t wRxdRptr;
			 uint8_t RxdBufFul;
			 char     RxdBuf[MAX_RXD_NUM][4];
			 uint16_t wTxdWptr;
			 uint16_t wTxdRptr;
			 uint8_t TxdBufFul;
			 char     TxdBuf[MAX_RXD_NUM][8];
			 uint8_t RxdBufCnt;
			}strUsart;	 


#endif
			
			
			
			


		
			